package com.xianggu.designMode.decorator.demo01;

/**
 * 炒饭快餐
 * @author chengjy
 * @date 2025/3/14
 */
public class FriedRice extends FastFood{// 具体构件角色


    public FriedRice() {
        super(10, "炒饭");
    }

    @Override
    public float cost() {
        return getPrice();
    }

    @Override
    public float getPrice() {
        return super.getPrice();
    }
}
